# 测试是否是 交替运行
import threading
import time 

def task():
    while(True):
        print("task......")

def task2():
    n = 0
    while(n<10000):
        print("task2......")
        n += 1

t1 = threading.Thread(target=task, ) 
t2 = threading.Thread(target=task2, )

t1.start()
t2.start()

t1.join()
t2.join()
